<!doctype html>
<!--
  ~ This program is part of the OpenLMIS logistics management information system platform software.
  ~ Copyright © 2013 VillageReach
  ~
  ~ This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
  ~  
  ~ This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more details.
  ~ You should have received a copy of the GNU Affero General Public License along with this program.  If not, see http://www.gnu.org/licenses.  For additional information contact info@OpenLMIS.org. 
  -->

<html lang="en" ng-app="distribution">
<head>
  <meta charset="utf-8">
  <title openlmis-message="app.title"></title>
  <link rel="icon" href="/public/favicon.ico" type="image/x-icon"/>

  <!-- library files-->
  <script src="/public/lib/jquery/jquery-2.0.0.min.js"></script>
  <script src="/public/lib/jquery/jquery-ui-1.9.2.custom.min.js"></script>
  <script src="/public/lib/angular/angular.min.js"></script>
  <script src="/public/lib/angular/angular-route.min.js"></script>
  <script src="/public/lib/angular/angular-cookies.min.js"></script>
  <script src="/public/lib/angular-ui/angular-ui.min.js"></script>
  <script src="/public/lib/angular/angular-resource.min.js"></script>
  <script src="/public/lib/bootstrap/js/bootstrap.min.js"></script>
  <script src="/public/lib/angular-ui/bootstrap/ui-bootstrap-0.1.0.min.js"></script>
  <script src="/public/lib/underscore/underscore-min.js"></script>
  <script src="/public/lib/select2/select2.js"></script>
  <script src="/public/js/shared/select2-ext.js"></script>
  <script src="/public/lib/indexed-db-angular-service/js/services/indexed-db.js"></script>
  <link rel="stylesheet" href="/public/lib/select2/select2.css">
  <link rel="stylesheet" href="/public/lib/bootstrap/css/bootstrap.min.css">
  <link rel="stylesheet" href="/public/lib/angular-ui/angular-ui.min.css">


  <!-- open-lmis shared files -->
  <script src="/public/js/shared/util.js"></script>
  <script src="/public/js/shared/services/services.js"></script>
  <script src="/public/js/shared/services/message-service.js"></script>
  <script src="/public/js/shared/services/authorization-service.js"></script>
  <script src="/public/js/shared/services/navigate-back-service.js"></script>
  <script src="/public/js/shared/controller/header-controller.js"></script>
  <script src="/public/js/shared/controller/login-controller.js"></script>
  <script src="/public/js/shared/controller/navigation-controller.js"></script>
  <script src="/public/js/shared/app.js"></script>
  <script src="/public/js/shared/open-lmis-dialog.js"></script>

  <!--App directives-->
  <script src="/public/js/shared/directives/openlmis-message.js"></script>
  <script src="/public/js/shared/directives/ui-nav.js"></script>
  <script src="/public/js/shared/directives/modal-events.js"></script>
  <script src="/public/js/shared/directives/fade-out.js"></script>
  <script src="/public/js/shared/directives/fixed-table-header.js"></script>

  <script src="/public/lib/localstorage/localStorage.js"></script>
  <script src="/public/js/shared/localStorageKeys.js"></script>

  <!-- page specific libaries/files -->
  <script src="/public/js/distribution/directives/auto-save.js"></script>
  <script src="/public/js/distribution/resolve/distribution-resolve.js"></script>
  <script src="/public/js/distribution/module/distribution-module.js"></script>
  <script src="/public/js/distribution/migrations.js"></script>

  <script src="/public/js/distribution/model/distribution.js"></script>
  <script src="/public/js/distribution/model/refrigerator-reading.js"></script>
  <script src="/public/js/distribution/model/refrigerators.js"></script>
  <script src="/public/js/distribution/model/epi-use.js"></script>
  <script src="/public/js/distribution/model/epi-inventory.js"></script>
  <script src="/public/js/distribution/model/facility-visit.js"></script>
  <script src="/public/js/distribution/model/facility-distribution-data.js"></script>
  <script src="/public/js/distribution/model/coverage.js"></script>
  <script src="/public/js/distribution/model/child-coverage.js"></script>
  <script src="/public/js/distribution/model/adult-coverage.js"></script>

  <script src="/public/js/distribution/service/shared-distributions.js"></script>
  <script src="/public/js/distribution/service/distribution-service.js"></script>

  <script src="/public/js/distribution/controller/epi-use-controller.js"></script>
  <script src="/public/js/distribution/controller/epi-inventory-controller.js"></script>
  <script src="/public/js/distribution/controller/record-facility-menu-controller.js"></script>
  <script src="/public/js/distribution/controller/distribution-list-controller.js"></script>
  <script src="/public/js/distribution/controller/distribution-controller.js"></script>
  <script src="/public/js/distribution/controller/view-load-amount-controller.js"></script>
  <script src="/public/js/distribution/controller/record-facility-data-controller.js"></script>
  <script src="/public/js/distribution/controller/refrigerator-controller.js"></script>
  <script src="/public/js/distribution/controller/visit-info-controller.js"></script>
  <script src="/public/js/distribution/controller/coverage-controller.js"></script>
  <script src="/public/js/distribution/controller/child-coverage-controller.js"></script>
  <script src="/public/js/distribution/controller/adult-coverage-controller.js"></script>

  <link type="text/css" rel="stylesheet" charset="UTF-8" href="/public/css/app.css">


  <!--[if IE 9]>
  <link rel="stylesheet" href="/public/css/ie9.css"/>
  <![endif]-->

</head>
<!-- TODO: onunload clears cache for safari. It is a hack. Find better alternative -->
<body onunload="">
<ng-include src="'/public/pages/header-offline.html'"></ng-include>
<ng-include src="'/public/pages/navigation-offline.html'"></ng-include>

<div class="content">
  <div ng-view></div>
</div>

</body>
</html>
